package com.photographysharing.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

@TableName("files")
public class Files {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String uuid;
    private String type;
    private String name;

    private Long size;
    private Date createTime;

    public Files() {
    }

    public Files(Integer id, String uuid, String type, String name, Long size, Date createTime) {
        this.id = id;
        this.uuid = uuid;
        this.type = type;
        this.name = name;
        this.size = size;
        this.createTime = createTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "File{" +
                "id=" + id +
                ", uuid='" + uuid + '\'' +
                ", type='" + type + '\'' +
                ", name='" + name + '\'' +
                ", size=" + size +
                ", createTime=" + createTime +
                '}';
    }
}
